package com.bootdo.collection.service.impl;

import com.bootdo.collection.dao.PushStationDao;
import com.bootdo.collection.domain.PushStationDO;
import com.bootdo.collection.service.PushStationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class PushStationServiceImpl implements PushStationService {
    @Autowired
    PushStationDao stationPointMapper;
    @Override
    public List<PushStationDO> list(Map<String,Object> params) {
        List<PushStationDO> list = stationPointMapper.list(params);
         return list;
    }

    @Override
    public int update(PushStationDO pushStationDO) {
        int s = stationPointMapper.update(pushStationDO);
        return s;
    }


    @Override
    public int save(PushStationDO pushStationDO) {
        int s = stationPointMapper.save(pushStationDO);
        return s;
    }

    @Override
    public int batchRemove(Integer[] pushStationIds) {
        int s = stationPointMapper.batchRemove(pushStationIds);
        return s;
    }

    @Override
    public PushStationDO get(int pushStationId) {
        PushStationDO sta = stationPointMapper.get(pushStationId);
        return sta;
    }

    @Override
    public int remove(int pushStationId) {
        int s = stationPointMapper.remove(pushStationId);
        return s;
    }

    @Override
    public int getTotal() {
        return stationPointMapper.getTotal();
    }

}
